import axios from 'axios'

function getQuery(name){
    let url='/json/'+name+'.json'
    return axios({url})
    .then(
         res=>res.data.reason ==="Success" && (this.arr = res.data.result.data)
      );
}